package com.example.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @Author : LinQingLiang
 * @file : Orders.java
 * @Since : 2023/2/22 19:24
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("订单编号")
    private String no;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("订单时间")
    private String time;
    @ApiModelProperty("订单状态")
    private String state;
    @ApiModelProperty("总价格")
    private String totalPrice;
    @ApiModelProperty("用户id")
    private Integer userId;
    @ApiModelProperty("支付时间")
    private String paymentTime;
    @ApiModelProperty("支付宝流水号")
    private String alipayNo;
    @ApiModelProperty("退款时间")
    private String returnTime;

    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private Integer number;
    @TableField(exist = false)
    private List<Cart> carts;
}
